<?php


	namespace app\validate\shop;


	use app\validate\BaseValidate;

	class WxSystemValidate extends BaseValidate
	{
		protected $rule = [
			'code'          => 'require',
			'iv'            => 'require',
			'encryptedData' => 'require',
			'session_key'   => 'require',
		];

		protected $message = [
			'code.require'          => 'code码必须存在',
			'iv.require'            => 'iv必须存在',
			'encryptedData.require' => 'encryptedData必须存在',
			'session_key.require'   => 'session_key必须存在',
		];

		protected $scene = [
			'login'       => ['code'],
			'getUserInfo' => ['iv', 'encryptedData', 'session_key']
		];
	}
